package kr.hkit.powerjava.chapter07.work;

public class Rectangle {
	private int weight;
	private int height;
	
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	
	public int area() {
		int area = this.weight * this.height;
		return area;
	}
	public int perimeter() {
		int perimeter = (this.weight *2) + (this.height*2);
		return perimeter;
	}
}
